home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 030a / autosn30.zip / SCANIT.BAT < prev   
DOS Batch File  |  1991-03-01  |  653b  |  21 lines

  1. echo off
  2. AUTOSCAN /q %1
  3. rem ErrorLevel 1 - AutoScan error or no disk space
  4. rem ErrorLevel 2 - No New Files.
  5. rem ErrorLevel 3 - Bad Archive - Will rename to filename.BAD  
  6. rem ErrorLevel 4 - virus found - Will rename to filename.BAD
  7. if errorlevel 4 goto virus
  8. if errorlevel 3 goto exit
  9. if errorlevel 2 goto exit
  10. if errorlevel 1 goto exit
  11. :Novirus
  12. rem Ad is my batch file to add Zip Comments
  13. call c:\dos\ad *.zip
  14. goto exit
  15. :Virus
  16. echo ********************** WARNING *************************
  17. echo * Possible Virus - Read AUTOSCAN.LOG for details!!!!!! *
  18. echo ********************************************************
  19. :exit
  20. rem All Done
  21.